switchroot/remount: Check mount status before remounting, be verbose
authorColin Walters <walters@verbum.org>
Mon, 15 May 2017 17:59:57 +0000 (13:59 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 16 May 2017 16:13:05 +0000 (16:13 +0000)
commitd815ba2a81ad14d9d4edc31dcd282dcc2a3a8fb9
treed053e512d2b83d9d9036c36f0913e5af9e9deefe
parentf21f500e40ba0d2c0881ecdaf876f8510e8c64ba
switchroot/remount: Check mount status before remounting, be verbose

By checking the mount status, we avoid remounting things if we don't
need to.  And printing a single line per mount helps debugging when
things go wrong.

Closes: #859
Approved by: jlebon
src/switchroot/ostree-remount.c